using System;
using System.Drawing;
using System.Windows.Forms;
using Deployment.CustomTasks.Controls;
using NAnt.Core;
using NAnt.Core.Attributes;

namespace Deployment.CustomTasks.Types
{
	[ElementName("checkbox")]
	public class CheckBoxWizardScreenItemElement : WizardScreenItemElement
	{
		private IUserControl checkBoxControl = new CheckBoxControl();
		private string depends;
		private string id;
		private string title;

		[TaskAttribute("id", Required = true)]
		public override string Id
		{
			get { return id; }
			set { id = value; }
		}

		[TaskAttribute("title", Required = true)]
		public override string Title
		{
			get { return title; }
			set { title = value; }
		}

		public override event EventHandler<UserControlChangedEvent> DepencencyChanged;

		public override string Value
		{
			get { throw new NotImplementedException(); }
		}

		public override string Depends
		{
			get { return depends; }
			set { depends = value; }
		}

		public override Control GetControl()
		{
			IUserControl control = new CheckBoxControl();
			control.Id = Id;
			control.Title = title;
			
			return null;
		}
	}
}